<%-- 
    Document   : appel
    Created on : 8 déc. 2013, 12:28:09
    Author     : Izii Tom's
--%>

<%@page import="java.util.Hashtable"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="com.myapp.struts.modele.Etudiant"%>
<%@page import="com.myapp.struts.modele.Promotion"%>
<%@page import="com.myapp.struts.modele.EstAbsent"%>
<%@page import="com.myapp.struts.modele.Matiere"%>
<%@page import="com.myapp.struts.modele.Enseignant"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">


        <!-- Bootstrap core CSS -->
        <link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet">

        <!-- Custom styles for this template -->
        <link href="http://getbootstrap.com/examples/signin/signin.css" rel="stylesheet">

        <!-- Just for debugging purposes. Don't actually copy this line! -->
        <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
        <style type="text/css"></style></head>
    <body>




        <jsp:useBean id="bd" class="com.myapp.struts.modele.QueryBD" scope="session"/>
        <div class="container">
            <div class="row">
                <div class="col-md-4"></div>
                <div class="col-md-4">
                    <%--<jsp:useBean id="utilisateur" scope="page" class=" com.jmd.test.struts.data.Utilisateur"/>--%>
                    <bean:define id="bdEtu" name="bd" property="promotion.etudiants"/>
        

                    <center>

                        <h2>Feuille d'appel</h2>
                        <br>
                        <h3>(P:Présent, A:Absent, E:Excusé)</h3>
                        <form method=POST action="AppelAction.do">

                            <table class="table table-hover">
                                <thead>
                                    <tr>
                                        <th>Elève</center></th>
                                        <th><center>Etat</center></th>
                                    </tr>
                                </thead>
                                <tbody>

                                    <logic:iterate id="bdEtu1" name="bdEtu">

                                        <tr>

                                            <td> 
                                            <html:text readonly="true" indexed="true" name="bdEtu1" property="nom"/> 

                                    </center>
                                    </td>

                                    <td> <center>

                                        <html:text readonly="false" indexed="true" name="bdEtu1" property="etat" size="1" maxlength="1"/>


                                    </center>
                                    </td>

                                    </tr>
                                </logic:iterate>    

                                </tbody>

                            </table>
                            <html:errors/>
                            <button class='btn btn-primary btn-lg btn-block' type='submit' value='Valider'>Valider</button>
                            
                        </form>
                </div>
                <div class="col-md-4"></div></div>
                <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://getbootstrap.com/dist/js/bootstrap.min.js "></script>
    </body>
</html>
